﻿using MetroManagement.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;

namespace MetroService.Host.EntityFrameworkCore
{
    /// <summary>
    /// 地铁服务迁移数据上下文
    /// </summary>
    public class MetroServiceMigrationDbContext : AbpDbContext<MetroServiceMigrationDbContext>
    {
        public MetroServiceMigrationDbContext(
            DbContextOptions<MetroServiceMigrationDbContext> options)
            : base(options)
        {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            modelBuilder.ConfigureMetroManagement();
        }
    }
}